﻿function onSourceDownloadProgressChanged(sender, eventArgs) {
    try {
        sender.findName("textBlock1").Text = Math.round((eventArgs.progress * 100), 0).toString();
        sender.findName("scaleTransform").ScaleX = eventArgs.progress;
    }
    catch (err) {
        //sender.findName("textBlock1").Text = '100';
    }
}